<?php $this->load->view('scenic/layout/header') ?>
<div class="main-page">
    <header class="sec-head flex">
        <div class="sec-return">
            <a href="javascript:goHistoryBack('<?php echo site_url();?>');">
                <i class="iconfont">&#xe606;</i>
            </a>
        </div>
        <div class="sec-city">
            <?php echo $cityName; ?><i class="iconfont icon-role">&#xe601;</i>
        </div>
        <div class="sec-doment am-dropdown" data-am-dropdown>
            <div class="am-dropdown-toggle" data-am-dropdown-toggle>
                <i class="iconfont">&#xe636;</i>
            </div>
            <ul class="am-dropdown-content">
                <li><a href="<?php echo site_url();?>"><i class="iconfont">&#xe605;</i>首页</a></li>
                <li>
                    <a class="sales-share" href="<?php echo site_url('home/ucenter/index');?>">
                        <i class="iconfont">&#xe622;</i>我的
                    </a>
                </li>
            </ul>
        </div>
    </header>
    <section class="sec-section widthMax">
        <div class="sec-color">
            <div class="sec-input">
                <i class="iconfont">&#xe635;</i>请输入搜索词
            </div>
        </div>
        <div class="am-slider am-slider-default beizhu-home" data-am-flexslider="{playAfterPaused:500}" data-am-widget="slider">
            <ul class="am-slides">
                <?php foreach($advert as $value): ?>
                <li>
                    <a href="<?php echo $value->url;?>">
                        <img src="<?php echo $this->config->show_image_url($value->picture);?>">
                    </a>
                </li>
                <?php endforeach ?>
            </ul>
        </div>
        <ul class="sec-nearby flex">
            <li>
                <a href="<?php echo site_url('scenic/search/index').'?keyword='.$cityName;?>" class="am-cf">
                    <p>周边</p>
                    <div class="flex-right"><i></i></div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('scenic/info/zhuanqu/'.$parentId);?>" class="am-cf">
                    <p>合作<br/>专区</p>
                    <div class="flex-right"><i></i></div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('tourism/goods/search').'?keyword='.$cityName;?>" class="am-cf">
                    <p>当地<br/>特产</p>
                    <div class="flex-right"><i></i></div>
                </a>
            </li>
        </ul>
        <?php if (count($sceneryOnSal) > 0) : ?>
            <dl class="sec-special">
                <dt>周边特价门票</dt>
                <?php foreach($sceneryOnSal as $value): ?>
                <dd>
                    <a href="<?php echo site_url('scenic/info/index/'.$value->sid); ?>" class="flex">
                        <img class="lazy" src="/skins/scenic/images/load.jpg" data-original="<?php echo $this->config->show_image_url($value->minipics); ?>">
                        <div class="price flex-1">
                            <p><?php echo $value->name_hanzi; ?></p>
                            <ul class="price-ul am-cf">
                                <?php if ($value->advance_date == 0) :?>
                                <li class="order">今日订</li>
                                <?php endif;?>
                                <?php if ($value->off_bonus > 0) :?>
                                <li class="play">积分</li>
                                <?php endif;?>
                            </ul>
                            <div class="sec-bottom">
                                <div class="sec-buy am-cf">
                                    <span><?php echo $value->sales_volume; ?>人已购买</span>
                                    <i class="buy-cost">
                                        <span class="china">￥</span><?php echo $value->shop_price; ?><span>起</span>
                                    </i>
                                </div>
                                <div class="sec-level am-cf">
                                    <h6><?php echo mb_strstr(trim(mb_strstr($value->address, ' ')), ' ', true); ?></h6>
                                    <i><?php echo $value->star_rank > 2 ? $value->star_rank : 3 ?>A景区</i>
                                    <s><span>￥</span><?php echo $value->market_price; ?></s>
                                </div>
                            </div>
                        </div>
                    </a>
                </dd>
                <?php endforeach ?>
            </dl>
            <!-- <a href="<?php echo site_url('scenic/search/index').'?keyword='.$cityName;?>" class="sec-more">查看更多门票<i class="iconfont">&#xe602;</i></a> -->
        <?php endif;?>
        <?php if (count($sceneryHot) > 0) : ?>
            <dl class="sec-price am-cf">
                <dt>热门景点</dt>
                <?php foreach($sceneryHot as $value): ?>
                <dd>
                    <a href="<?php echo site_url('scenic/info/index/'.$value->sid); ?>">
                        <img class="lazy" src="/skins/scenic/images/load.jpg" data-original="<?php echo $this->config->show_image_url($value->minipics); ?>">
                        <p><?php echo $value->name_hanzi; ?></p>
                        <i><span>￥</span><?php echo $value->shop_price; ?></i>
                        <s><span>￥</span><?php echo $value->market_price; ?></s>
                    </a>
                </dd>
                <?php endforeach ?>
            </dl>
            <div class="more-look">
                <a href="<?php echo site_url('scenic/search/index').'?provinceid='.$parentId;?>">查看更多</a>
            </div>
        <?php endif;?>
    </section>
</div>
<div class="minor-page">
    <?php $this->load->view('scenic/home/search');?>
</div>
<div class="city-page">
    <?php $this->load->view('scenic/home/city');?>
</div>
<?php $this->load->view('scenic/layout/footer') ?>